﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace SlamCms.SharePoint.Migration
{
	public class MigratableListDependency : IMigratable
	{
		public string ListId { get; set; }
		public string SiteId { get; set; }
		
		public MigratableListDependency()
		{

		}

		public XElement ToXml()
		{
			return new XElement("ListDependency", new XAttribute("SiteId", SiteId), new XAttribute("ListId", ListId));
		}

		public void FromXml(XElement element)
		{
			ListId = element.Attribute("ListId").Value;
			SiteId = element.Attribute("SiteId").Value;
		}
	}
}
